CONTENTS | INDEX | PREV | NEXT
 stack_abort

 NAME
  stack_abort - exit point when dynamic stack allocation fails

 SYNOPSIS

  void
  stack_abort(void)
  {
      /* .. your exit code .. */
      abort();
  }

 FUNCTION
  When dynamic stack allocation is enabled via the -gs option and
  such an allocation fails, stack_abort() is called.  If you do
  not specify a stack_abort() routine, the c.lib stack_abort()
  will be used and simply call abort().

  If you do specify a stack_abort() routine, you have two choices.
  (1) You can exit out of the program, or (2) you can simply return
  from the subroutine which RETRIES the allocation, and calls
  stack_abort() again if it fails.

  The program has about 2KB of stack left at the time this function
  is called.

  Since a low memory condition exists when this function is called
  you should NOT do anything that might require additional
  allocations!

 EXAMPLE
  none - anybody got a good example?